package com.imooc.bilibili.mapper.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imooc.bilibili.domain.user.User;
import com.imooc.bilibili.domain.user.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @author gcq
 * @Create 2022-05-21
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据userIds获取对应用户信息
     *
     * @param userIds 多个用户id
     * @return 结果
     */
    List<UserInfo> getUserInfoByUserIds(@Param("userIds") Set<Long> userIds);
}